package com.yunchang.springboot.models.DO;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunchang.springboot.base.Column;
import com.yunchang.springboot.base.Id;
import com.yunchang.springboot.base.Table;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单关联数据主表（马帮api）
 * order_data
 * @author WeiziPlus
 * @date 2019-09-03 11:57:26
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Table("caravan_order_data")
public class CaravanOrderData implements Serializable {
    /**
     */
    @Id("id")
    private Long id;

    /**
     * 数据获取日期
     */
    @Column("date")
    private String date;

    /**
     */
    @Column("company_id")
    private String companyId;

    /**
     * 订单编号
     */
    @Column("platform_order_id")
    private String platformOrderId;

    /**
     * 交易编号(平台交易号)
     */
    @Column("sales_record_number")
    private String salesRecordNumber;

    /**
     * 付款时间
     */
    @Column("paid_time")
    private String paidTime;

    /**
     */
    @Column("update_time")
    private String updateTime;

    /**
     */
    @Column("shop_id")
    private String shopId;

    /**
     * 店铺名
     */
    @Column("shop_name")
    private String shopName;

    /**
     */
    @Column("platform_id")
    private String platformId;

    /**
     * 平台名
     */
    @Column("platform_name")
    private String platformName;

    /**
     * 平台订单状态
     */
    @Column("platform_order_status")
    private String platformOrderStatus;

    /**
     */
    @Column("order_status")
    private String orderStatus;

    /**
     * 状态
     */
    @Column("order_status_cn")
    private String orderStatusCn;

    /**
     * 原始商品总金额
     */
    @Column("item_total_origin")
    private BigDecimal itemTotalOrigin;

    /**
     * 订单原始总金额
     */
    @Column("order_total_origin")
    private BigDecimal orderTotalOrigin;

    /**
     * 汇率
     */
    @Column("currency_rate")
    private BigDecimal currencyRate;

    /**
     */
    @Column("currency_id")
    private String currencyId;

    /**
     * 订单总重量
     */
    @Column("order_weight")
    private BigDecimal orderWeight;

    /**
     * 是否退货，1 是 2 否
     */
    @Column("is_returned")
    private String isReturned;

    /**
     * 发货时间
     */
    @Column("express_time")
    private String expressTime;

    /**
     * 商品总数量
     */
    @Column("sku_num")
    private BigDecimal skuNum;

    /**
     * 备注
     */
    @Column("remark")
    private String remark;

    /**
     *
     */
    @Column("paypal_id")
    private String paypalId;

    /**
     *
     */
    @Column("other_expend")
    private BigDecimal otherExpend;

    /**
     *
     */
    @Column("other_income")
    private BigDecimal otherIncome;

    /**
     *
     */
    @Column("shipping_fee")
    private BigDecimal shippingFee;

    /**
     *
     */
    @Column("platform_fee")
    private BigDecimal platformFee;

    /**
     *
     */
    @Column("paypal_fee")
    private BigDecimal paypalFee;

    /**
     *
     */
    @Column("logistics_name")
    private String logisticsName;

    /**
     *
     */
    @Column("logistics_channel_name")
    private String logisticsChannelName;

    /**
     *
     */
    @Column("track_number")
    private String trackNumber;

    private static final long serialVersionUID = 1L;
}